package com.sun.wanandroid.app;

import android.annotation.SuppressLint;
import android.os.Build;

import androidx.annotation.RequiresApi;
import androidx.core.app.CoreComponentFactory;

/**
 * @author:sunc
 * @time :2025/7/31 14:14
 * @desc: 描述
 * Unable to instantiate appComponentFactory
 * java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/com.sun.wanandroid-fnbA67lEBVk8xAuAX6TsAQ==/lib/x86_64, /data/app/com.sun.wanandroid-fnbA67lEBVk8xAuAX6TsAQ==/base.apk!/lib/x86_64, /system/lib64, /system/vendor/lib64]]
 *  此类解决上面的异常用
 *  AppLication onCreate中使用
 *         // 设置自定义的AppComponentFactory
 *         AppComponentFactory factory = new MyAppComponentFactory();
 *         AppExecutors.init(factory); // 确保框架或库正确处理这个factory
 */
@RequiresApi(api = Build.VERSION_CODES.P)
@SuppressLint("RestrictedApi")
public class MyAppComponentFactory extends CoreComponentFactory {
    // 你可以在这里添加额外的逻辑
}
